package edu.zut.cs.software.sms.supplier.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.zut.cs.software.person.supplier.domain.Supplier;
import edu.zut.cs.software.person.supplier.service.SupplierManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;
/**
 * @2020.6.1
 * @author Jianghe
 *@controller方法测试
 */
@Controller
@RequestMapping("/supplier")
public class SupplierController extends GenericController<Supplier, Long, SupplierManager> {

	SupplierManager supplierManager;
	 @Autowired
	    public void setSupplierManager(SupplierManager supplierManager) {
	        this.supplierManager = supplierManager;
	        this.manager = this.supplierManager;
	    }

	 public String index() {
			String result = "/index";
			return result;
		}
	}

